package com.lanou3g.code0408.setterandgetter;

/**
 * Created by dllo on 18/4/8.
 */
/*以后记住:
1.类中的所有属性都是private
2.每个属性提供一对setXXX和getXXX的方法(XXX就是属性名)
我们叫它set/get方法
3.set方法用来为这个属性进行赋值
4.get方法用来获取这个属性的值
cmd+n 快捷键
windows:alt+insert
 */
public class Girl {
    private int age;
    private String name;
    private float weight;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }
}
